package com.github.xuchen93.forlaozeng.opreate_2;


/**
 * @author xuchen.wang
 */
public class Subject_4 {

	public static void main(String[] args) {
		String r = reverseInt(456);
		System.out.println(r);
	}

	public static String reverseInt(int num){
		String s = String.valueOf(num);
		char[] chars = s.toCharArray();
		StringBuilder sb = new StringBuilder();
		for (int i = 0; i <chars.length; i++) {
			sb.append(chars[chars.length-i-1]);
		}
		return sb.toString();
	}
}
